package com.yc.fruitmarket.biz.impl;

import java.util.List;
import java.util.Map;

import com.yc.fruitmarket.biz.addrBiz;
import com.yc.fruitmarket.dao.DBHelper;

public class addrBizImpl implements addrBiz {
	private DBHelper db = new DBHelper();

	@Override
	public List<Map<String, String>> getaddrs(String uid) {
		String sql = "select * from addr where uid = ? and status = 1 order by aid desc";
		return db.find(sql, uid);
	}

	@Override
	public int addAddr(String uid, String aname, String atel, String prov, String city, String area, String address) {
		String sql = "insert into addr values(null,?,?,?,?,?,?,?,1)";
		return db.doUpdate(sql, uid, aname, atel, prov, city, area, address);
	}
	
	//获取订单信息
	@Override
	public List<Map<String, String>> openL(String aid) {
		String sql = "";
		return null;
	}


	
}
